package com.tianyi.sfzy1.controller;

import com.tianyi.sfzy1.service.ConsultantspecializationService;
import com.tianyi.sfzy1.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/consultantspecialization")
public class ConsultantspecializationController {
    @Autowired
    private ConsultantspecializationService consultantspecializationService;
    @GetMapping
    public R selectAllConsultantSpecialization(){
        return R.ok(consultantspecializationService.selectAllConsultantSpecialization());
    }
}
